package com.example.fish.vo;

import lombok.Data;
import org.springframework.stereotype.Component;

@Component
@Data
public class ResultMessage {
    private String message;
    private Integer fromid;
    private Integer targetid;
    private String time;
//  target的用户名
    private String username;
    private String fromAvatar;
    private String targetAvatar;
//    双方的头像
    public ResultMessage() {
    }

    public ResultMessage(String message, Integer fromid, Integer targetid, String time, String username, String fromAvatar, String targetAvatar) {
        this.message = message;
        this.fromid = fromid;
        this.targetid = targetid;
        this.time = time;
        this.username = username;
        this.fromAvatar = fromAvatar;
        this.targetAvatar = targetAvatar;
    }
}
